cd /root/run/go/code/common

git pull

cd /root/run/go/code/user_server

git pull
export GOPRIVATE="jihe.common"
export GOPROXY=https://goproxy.cn

GO111MODULE=on go build -o user_server cmd/main.go

ssh test1 "supervisorctl stop user_server"

scp user_server configs/test.yml test1:/root/run/user_server

ssh test1 "supervisorctl start user_server"

ssh test2 "supervisorctl stop user_server"

scp user_server configs/test.yml test2:/root/run/user_server

ssh test2 "supervisorctl start user_server"